<div class="popup">
	<div class="popup-body">
		<div class="popup-bottom" style="height:auto;min-height:10rem;overflow-y:scroll;padding-bottom:0">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showgetstore=false"></i>
			<div class="fui-list-group merchgroup" style="margin:0.2rem 0.5rem;margin-top:2rem;border-radius:0.3rem;" ng-repeat="item in pagedata.storelist">
								<div class="fui-list">
									<a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;">
										<div class="title" style="font-size:0.76rem">{{item.brandname || '无'}}({{item.title}}) <span class="syscolor r-f" style="text-align:right;font-size:0.65rem;">{{item.distance}}km</span></div>
										<div class="subtitle">
											<i class="icon icon-clock" style="font-size:0.65rem"></i> {{item.time.start || '8:00'}} ~ {{item.time.end || '22:00'}}
											<span href="tel:{{item.mobile}}" class="r-f" style="font-size:0.65rem"><i class="icon icon-phone" style="font-size:0.65rem"></i> 联系门店</span>
										</div>
									</a>
								</div>
								<div class="fui-list">
									<div class="fui-list-inner subtitle" style="font-size:0.55rem">
										<i class="icon icon-map" style="font-size:0.6rem"></i>
										{{item.address || '该门店还未填写地址'}}
									</div>
									 <div class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">
										<div href="javascript:;" ng-click="pagedata.showgetstore=false;access_json('jy_meye/server/sever_detail/id='+pagedata.serveid+'&store_id='+item.id)" class="jylabel jylabel-red active sysbgcolor" style="border: 1px solid #cdab6a;background-color: #cdab6a;border-radius:1rem;font-weight:400">选择该店</div>
									 </div>
								</div>
								
			</div>
			<div class="content-empty" ng-show="!pagedata.storelist || pagedata.storelist.length == 0 ">
					  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">该区域暂时没有门店！</p>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
// 百度地图API功能
scope.pagedata.params=scope.pagedata.params?scope.pagedata.params:{}
if(!scope.pagedata.params.lat){
	window.scope.location(function(re){
		scope.pagedata.params=scope.pagedata.params?scope.pagedata.params:{}
		if(!scope.pagedata.params.city){
			scope.pagedata.params.province = re.addressComponents.province;
			scope.pagedata.params.city = re.addressComponents.city;
		}
		scope.pagedata.params.lat=re.lat_lng.lat;
		scope.pagedata.params.lng=re.lat_lng.lng;
		scope.pagedata.street=re.addressComponents.street;
		scope.get('jy_meye/index/list/limit=20&lat='+scope.pagedata.params.lat+'&lng='+scope.pagedata.params.lng+'&province='+scope.pagedata.params.province+'&city='+scope.pagedata.params.city,function(res){
			scope.pagedata.storelist=res.list
		});
	});
}else{
	scope.get('jy_meye/index/list/limit=20&lat='+scope.pagedata.params.lat+'&lng='+scope.pagedata.params.lng+'&province='+scope.pagedata.params.province+'&city='+scope.pagedata.params.city,function(res){
			scope.pagedata.storelist=res.list
	});
}
</script>